<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .current {
            color: red;
            font-weight: bold;
            text-decoration: underline;
        }
    </style>
</head>
<body>

<div th:replace="~{frag/nav::nav1}"></div>
<hr/>
<div style="border-radius: 12px; border: 2px solid red; padding: 1rem;" th:insert="~{frag/main::nav2(1)}"></div>
<div style="border-radius: 12px; border: 2px solid red; padding: 1rem;" th:insert="~{frag/main::nav2(2)}"></div>
<div style="border-radius: 12px; border: 2px solid red; padding: 1rem;" th:insert="~{frag/main::nav3(3, ${session.login})}"></div>

<hr/>
<pre style="border: 1px solid green;" th:insert="~{frag/nav::frag2}"></pre>
<pre style="border: 1px solid blue;" th:replace="~{frag/nav::frag2}"></pre>

<h1>这是test.html</h1>

<h2>把主页装进来</h2>
<div style="padding: 1rem; border: 1px solid green;" th:insert="~{index}"></div>

<footer>
    <p>版权：2023~2024 @Zking1206</p>
</footer>
</body>
</html>